<template>
  <div class="footer">
    <h1>我是Footer</h1>
    <p>Count的值是{{ count }}</p>
    <p>价格是{{ price }}</p>
    <h1>电影列表<button
    @click="getMovieList"
    >Add</button>
    </h1>
    <ul>
        <li v-for='item in movieList' :key='item.tvId'>{{item.albumName}}</li>
    </ul>
  </div>
</template>

<script>
import {mapState,mapActions} from 'vuex'
export default {
  name: "Footer",
  computed : {
    ...mapState(
       
      "count", ["count", "movieList"]
    )
  },
  methods : {
    ...mapActions('count',["getMovieList"])
  }
};
</script>

<style>
.footer {
  margin: 30px;
  background: palevioletred;
}
</style>